﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Kcadastro.fuser
{
    public partial class habilitarEmail : System.Web.UI.Page
    {
        private string _k;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                _k = Request.QueryString["k"].ToString();
                //Response.Write(_k);
                validarEmail();
            }
        }

        private void validarEmail()
        {
            classes.usuarios users = new classes.usuarios();
            if (users.confirmarEmail(_k))
            {
                pn_validado.Visible = true;
            }
            else
            {
                pn_validado.Visible = false;
            }
            
        }
    }
}